package com.he.mementomodel.memento;

import java.util.Date;

/**
 * 备忘录模式，在不破坏封装性的前提下，捕获某个类的内部状态，
 * 并且在该对象之外保存这个状态，这样就可以通过memento对象恢复属性<br/>
 */
public class ApplyMemento {
    protected String applyId;

    protected String applyCode;

    protected Date ctime;

    protected String ownerName;

    protected String auditName;

    /**
     * 创建备份
     * @param applyId
     * @param applyCode
     * @param ctime
     * @param ownerName
     * @param auditName
     */
    public ApplyMemento(String applyId, String applyCode, Date ctime, String ownerName, String auditName) {
        this.applyId = applyId;
        this.applyCode = applyCode;
        this.ctime = ctime;
        this.ownerName = ownerName;
        this.auditName = auditName;
    }

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }

    public String getApplyCode() {
        return applyCode;
    }

    public void setApplyCode(String applyCode) {
        this.applyCode = applyCode;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }
}
